<div>
  <style>
    .section {
      padding: 40px 0;
      text-align: center;
      /*border-bottom: 1px solid #EDF1F2;*/
      position: relative;
      /*overflow: hidden;*/

    }

    .section .header {
      margin-top: 16px;
      text-align: center;
      font-weight: 600;
      display: inline-block;
      vertical-align: middle;
      position: relative;
      font-size: 16px;
      color: #223358;
    }

    .section .header span {
      font-size: 30px;
      display: inline-block;
      vertical-align: middle;
      margin: 0 5px 5px 5px;
    }

    .section .sub-header {
      font-size: 14px;
      color: #4B4F57;
      margin: 10px auto 0 auto;
      width: 90%;
    }

    .section .sub-header span {
      display: block;
    }

    .section .blue-divider {
      width: 18px;
      height: 2px;
      background-color: #32CDFF;
      margin: 0 auto;
    }

    .section img {
      width: 100%;
      margin: 16px auto 12px auto;
    }

    .section .left {
      position: absolute;
      left: 0;
      width: 70px !important;
      top: -15px;
    }

    .section .right {
      position: absolute;
      right: 0;
      width: 70px !important;
      top: 10px;
    }

    .graduation-icon-c {
      background-size: 32px 32px;
      background-image: url('{{env('CDN_RESOURCE')}}/icon/mobile/ic_graduation_c.png');
      width: 32px;
      height: 32px;
      display: block;
      margin: 0 auto;

    }

    .statistic {
      width: 100%;
      margin-top: 6px;
      font-size: 0;
    }

    .statistic .item {
      width: 33.3333%;
      text-align: center;
      display: inline-block;
      vertical-align: middle;
    }

    .statistic .item .up {
      font-size: 16px;
      color: #FF6D4A;
    }

    .statistic .item .down {
      margin-top: 8px;
      font-size: 12px;
      color: #666B6C;
    }

    .interest-icon-c {
      background-size: 32px 32px;
      background-image: url('{{env('CDN_RESOURCE')}}/icon/mobile/ic_interest_c.png');
      width: 32px;
      height: 32px;
      display: block;
      margin: 0 auto 0 auto;

    }

    .section .sub-header {
      font-size: 14px;
      color: #4B4F57;
      margin: 10px auto 0 auto;
      width: 90%;
    }

    .section .sub-header span {
      display: block;
    }

    .lesson-steps {
      width: 100%;
      font-size: 0;
      margin-top: 16px;
    }

    .lesson-steps .item {
      width: 33.333%;
      display: inline-block;
      vertical-align: bottom;
    }

    .lesson-steps .item .text {

      display: inline-block;
      vertical-align: middle;
      margin-left: 5px;
      font-size: 14px;
      color: #4B4F57;
    }

    .lesson-steps .item span {
      font-size: 14px;
      color: #4B4F57;
      display: block;
      margin-top: 8px;
    }

    .photo-icon {
      background-size: 16px 16px;
      background-image: url('{{env('CDN_RESOURCE')}}/icon/mobile/ic_photo.png');
      width: 16px;
      height: 16px;
      display: inline-block;
      vertical-align: middle;
    }

    .game-icon {
      background-size: 16px 16px;
      background-image: url('{{env('CDN_RESOURCE')}}/icon/mobile/ic_game.png');
      width: 16px;
      height: 16px;
      display: inline-block;
      vertical-align: middle;
    }

    .thumbsup-icon {
      background-size: 16px 16px;
      background-image: url('{{env('CDN_RESOURCE')}}/icon/mobile/ic_thumbsup.png');
      width: 16px;
      height: 16px;
      display: inline-block;
      vertical-align: middle;
    }

    .level-icon-c {
      background-size: 32px 32px;
      background-image: url('{{env('CDN_RESOURCE')}}/icon/mobile/ic_level_c.png');
      width: 32px;
      height: 32px;
      display: block;
      margin: 0 auto 0 auto;
    }

    .level {
      width: 90%;
      font-size: 0;
      /*background-color: #F8F9FA;*/
      margin: 24px auto 0 auto;
      border-radius: 30px;
      position: relative;
      height: 40px;
      background: rgba(50, 205, 255, 0.10);
      overflow: hidden;
      /*border:1px solid red;*/
    }

    .level-slide-list {
      position: absolute;
      top: 0;
      left: 0;
      width: 240%;
    }

    .level-slide-list .active-level {
      color: white;

    }

    .level-slide-list span {

      height: 40px;
      line-height: 40px;
      font-size: 12px;
      text-align: center;
      z-index: 2;
      border-radius: 30px;
      cursor: pointer;
      width: calc(8.333%);
      display: inline-block;
      vertical-align: middle;
      position: relative;

    }

    .u-nav-cursor {
      position: absolute;
      border-radius: 20px;
      top: 0;
      left: 0;
      width: 20%;
      height: 40px;
      box-sizing: border-box;
      background-color: #32CDFF;
      z-index: 1;
    }

    .level-info {
      width: 90%;
      margin: 0 auto;
    }

    .active-level-item {
      display: block !important;
    }

    .level-item {
      display: none;
    }

    .level-detail {

    }

    .level-detail span {
      display: block;
      width: 100%;
      text-align: left;
      font-size: 14px;
      color: #666B6C;
      line-height: 20px;
      margin-top: 5px;
    }

    .level-detail .item {
      border: 1px solid #EEF1F2;
      border-radius: 4px;
      padding: 16px 12px;
      margin-top: 18px;
    }

    .level-detail .item .header {
      width: 100%;
      margin: 0 0 16px 0;
      text-align: left !important;

    }

    .level-detail .item .header .h-l {
      height: 14px;
      width: 3px;
      display: inline-block;
      vertical-align: middle;
      background: #666B6C;
    }

    .level-detail .item .header .text {
      font-size: 14px;
      color: #666B6C;
      display: inline-block;
      vertical-align: middle;
    }

    .lesson-plan {
      margin-top: 20px;
      font-size: 0;
      height: 250px;
    }

    .lesson-plan div:nth-child(2) {
      margin: 0 10px;
    }

    .zoom-in {
      width: calc(50% - 10px);
      /*border:1px solid #E7E8EA;*/
      border-radius: 5px;
      display: inline-block;
      vertical-align: middle;
      -webkit-transition: all 0.5s ease-out;
      transition: all 0.5s ease-out;

    }

    .zoom-out {
      width: calc(25% - 10px);
      border: 1px solid #E7E8EA;
      border-radius: 5px;
      height: 100px;
      display: inline-block;
      vertical-align: middle;

      -webkit-transition: all 0.3s ease-out;
      transition: all 0.3s ease-out;
    }

    .zoom-in.detail {
      text-align: center;
    }

    .zoom-in.detail .fee {
      margin: 20px 0;
      font-size: 14px;
    }

    .zoom-in.detail .fee span {
      display: inline-block;
      vertical-align: middle;
    }

    .zoom-in.detail .fee .up .money {
      font-size: 24px;
    }

    .zoom-in.detail .schedule {
      opacity: 1;
      -webkit-transition: all 0.1s ease-out 0.3s;
      transition: all 0.1s ease-out 0.3s;

      font-size: 12px;
      margin: 20px 0;

      color: #676C75;
    }

    .zoom-in.detail .schedule div {
      margin-top: 16px;
    }

    .zoom-out.detail {
      text-align: center;
    }

    .zoom-out.detail .fee {
      margin: 20px 0;
    }

    .zoom-out.detail .fee .up {
      font-size: 16px;
      display: block;
    }

    .zoom-out.detail .fee .down {
      font-size: 12px;
      display: block;
    }

    .zoom-out.detail .schedule {
      opacity: 0;
      color: #676C75;
    }

    .detail .schedule div span:before {
      content: '';
      background-size: 16px 16px;
      background-image: url('{{env('CDN_RESOURCE')}}/icon/mobile/campaign/ic_tick.png');
      width: 16px;
      height: 16px;
      margin: 0 5px;
      display: inline-block;
      vertical-align: middle;
    }

    .review {
      /*border:1px solid red;*/
      /*visibility: hidden;*/
      width: 95%;
      margin: 0 auto;
      visibility: hidden;
      margin-top: 24px;
    }

    .review .item {
      margin: 0 auto 32px auto;
      overflow: hidden;
      opacity: 0;
    }

    .review .item:nth-child(odd) {
      transform: translate3D(0, 300px, 0);
      -webkit-transform: translate3D(0, 300px, 0);
    }

    .review .item:nth-child(even) {
      transform: translate3D(0, 300px, 0);
      -webkit-transform: translate3D(0, 300px, 0);
    }

    .left-r img, .right-r img {
      width: 30px;
      display: inline-block;
      vertical-align: bottom;
      margin: 0 4px 3px 4px;
    }

    .review .item:nth-child(1) .text {
      background: rgba(255, 138, 111, 0.06);
      border: 1px solid rgba(255, 138, 111, 0.30);

    }

    .review .item:nth-child(2) .text {
      background: rgba(50, 205, 255, 0.06);
      border: 1px solid rgba(50, 205, 255, 0.30);
    }

    .review .item:nth-child(3) .text {
      background: rgba(255, 204, 0, 0.06);
      border: 1px solid rgba(255, 204, 0, 0.30);
    }

    .review .item:nth-child(4) .text {
      background: rgba(50, 205, 255, 0.06);
      border: 1px solid rgba(50, 205, 255, 0.30);
    }

    .review .item:nth-child(5) .text {
      background: rgba(255, 138, 111, 0.06);
      border: 1px solid rgba(255, 138, 111, 0.30);
    }

    .review .fade-animate:nth-child(1) {
      animation: fall 0.5s forwards 0.1s;
      -webkit-animation: fall 0.5s forwards 0.1s;
    }

    .review .fade-animate:nth-child(2) {
      animation: fall 0.5s forwards 0.2s;
      -webkit-animation: fall 0.5s forwards 0.2s;
    }

    .review .fade-animate:nth-child(3) {
      animation: fall 0.5s forwards 0.3s;
      -webkit-animation: fall 0.5s forwards 0.3s;
    }

    .review .fade-animate:nth-child(4) {
      animation: fall 0.5s forwards 0.4s;
      -webkit-animation: fall 0.5s forwards 0.4s;
    }

    .review .fade-animate:nth-child(5) {
      animation: fall 0.5s forwards 0.5s;
      -webkit-animation: fall 0.5s forwards 0.5s;
    }

    .left-r .text, .right-r .text {
      display: inline-block;
      vertical-align: bottom;
      width: calc(100% - 90px);
      padding: 15px 20px;

      font-size: 14px;
      color: #4A4A4A;
      line-height: 28px;
      text-align: left;
    }

    .left-r .text {
      border-radius: 44px 44px 44px 4px;
    }

    .right-r .text {
      border-radius: 44px 44px 4px 44px;
    }

    .left-r .review-who {
      display: block;
      float: left;
      font-size: 12px;
      color: #676C75;
      margin-top: 8px;
    }

    .right-r .review-who {
      display: block;
      float: right;
      font-size: 12px;
      color: #676C75;
      margin-top: 8px;
    }

    .left-r .review-who span, .right-r .review-who span {
      font-size: 12px;
      color: #8A8F9B;
    }

    .class-type {
      margin-top: 40px;
    }

    .class-type .c-header {
      font-size: 14px;
      color: #4B4F57;
      font-weight: 600;
    }

    .class-type .type {
      width: 80%;
      margin: 16px auto 0 auto;
      overflow: hidden;
    }

    .class-type .type div {
      height: 40px;
      line-height: 40px;
      width: calc(50%);
      box-sizing: border-box;
      text-align: center;
      font-size: 12px;
      color: #676c75;
      float: left;
    }

    .class-type .type div:nth-child(1) {
      border: 1px solid #E9EFF4;
    }

    .class-type .type div:nth-child(2) {
      border-top: 1px solid #E9EFF4;
      border-bottom: 1px solid #E9EFF4;
      border-right: 1px solid #E9EFF4;
    }

    .class-type .type div span {
      font-size: 16px;
      font-weight: 600;
    }

    .reg-btn {
      width: 100%;
      height:40px;
      line-height: 40px;
      text-align: center;
    }

    .buy-btn {
      width: 80% !important;
      margin: 24px auto 10px auto !important;
      color: #32CDFF;
      border: 1px solid #32CDFF;
    }

    @-webkit-keyframes fall {
      0% {
        opacity: 0;
      }
      100% {
        -webkit-transform:translate3D(0,0,0);
        opacity: 1;
      }
    }

    @keyframes fall {
      0% {
        opacity: 0;

      }
      100% {
        transform:translate3D(0,0,0);
        opacity: 1;
      }
    }

    .footer {
      width: 100%;
    }
    .icon-links {
      overflow: hidden;
    }

    .icon-links .socials {
      float: right;
      margin-right: 20px;

    }

    .logo-blue {
      background-size: 140px 25px;
      background-image: url('{{env('CDN_RESOURCE')}}/icon/mobile/campaign/christmas/logo_blue.png');
      width: 140px;
      height: 25px;
      margin: 48px auto 24px auto;
    }

    .qr-code {
      margin-top: 16px;
      line-height: 0;
    }

    .qr-code img {
      width: 120px;
      margin-left: calc(50% - 60px);
    }

    .qr-code > .name {
      margin-top: 6px;
      font-size: 12px;
      color: #676C75;
      line-height: 17px;
      display: block;
      text-align: center;
    }

    .qr-code > .scan-me {
      margin-top: 8px;
      font-size: 14px;
      color: #4B4F57;
      line-height: 20px;
      display: block;
      text-align: center;
    }

    .copy-right {
      margin: 0 0 80px 0;
      text-align: center;

    }

    .copy-right span {
      display: block;
      font-size: 12px;
      color: #999EA8;
      line-height: 24px;
    }

    .account-info {

      margin-top:40%;
      width:100%;

    }
    .account-info .icon {
      text-align: center;
      margin-left: calc(50% - 24px);
    }
    .current-account {
      font-size: 16px;
      text-align: center;
      margin-top:20px;
    }
    .current-account span {
      display: inline-block;
      vertical-align: middle;
    }
    .current-account .text {
      color:white;
    }
    .current-account .acc-id {
      color:#FF6D4A;
      font-size: 20px;
    }
  </style>
  <div class="section">
    <div class="graduation-icon-c"></div>
    <div class="header">严选北美外教</div>
    <img src="{{env('CDN_RESOURCE')}}/img/mobile/teacher.png">
    <div class="statistic">
      <div class="item">
        <div class="up">1%</div>
        <div class="down">考核通过率</div>
      </div>

      <div class="item">
        <div class="up">100%</div>
        <div class="down">来自美国，加拿大</div>
      </div>

      <div class="item">
        <div class="up">95+</div>
        <div class="down">家长评分</div>
      </div>

    </div>
  </div>
  <div class="section">
    <div class="interest-icon-c"></div>
    <div class="header">趣味教学场景</div>
    <div class="sub-header">孩子到久趣的第一个转变—主动要求上课</div>
    <img src='{{env('CDN_RESOURCE')}}/img/mobile/teaching.png'>
    <div class="lesson-steps">
      <div class="item">
        <div class="photo-icon"></div>
        <div class="text">丰富动画</div>
      </div>
      <div class="item">
        <div class="game-icon"></div>
        <div class="text">游戏化</div>
      </div>
      <div class="item">
        <div class="thumbsup-icon"></div>
        <div class="text">同伴激励</div>
      </div>
    </div>
  </div>
  <div class="section">
    <div class="level-icon-c"></div>
    <div class="header">科学分级课程体系</div>
    <div class="sub-header">
      <span>基于欧洲语言共同框架(CEFR)独家研发，与中国公立小学新课标教材接轨，更适合中国孩子学习</span>
    </div>
    <img src="{{env('CDN_RESOURCE')}}/img/mobile/course_system.png" style="margin-top: 22px;">
    <div class="sub-header">
      <span>即刻连线北美外教，专业指导，进阶升级。</span>
      <span>久趣英语目前已开设自然拼读课、语言基础课，还有更多好学好玩的课程等你发现。</span>
    </div>
  </div>
  <div class="section">
    <div class="blue-divider"></div>
    <div class="header">特惠价格，即刻报名</div>
    <div class="sub-header">180天无条件退款，报名后即可上课</div>
    <div class="lesson-plan">
      <div class="detail product4 zoom-out">
        <div class="fee">
          <span class="up">¥ <span class="money">100</span></span>
          <span class="down">/4 课时</span>
        </div>
        <div class="schedule">
          <div><span>自购买起，一个月内有效</span></div>
          <div><span>建议4-6节课/周</span></div>
          <div><span>本期招生仅限前500</span></div>
          <div class="reg-btn buy-btn" data-field="4">购买</div>
        </div>
      </div>
      <div class=" detail zoom-in">
        <div class="fee">
          <span class="up">¥ <span class="money">3600</span></span>
          <span class="down">/90 课时</span>
        </div>
        <div class="schedule">
          <div><span>自购买起，课时一年内有效</span></div>
          <div><span>建议4-6节课/周</span></div>
          @if($largeLimit['day'] > 0)
            <div class="reg-btn buy-btn disable" data-field="6">待开放</div>
          @else
            <div class="reg-btn buy-btn" data-field="6">购买</div>
          @endif
        </div>
      </div>

      <div class=" detail zoom-out">
        <div class="fee">
          <span class="up">¥ <span class="money">1980</span></span>
          <span class="down">/45 课时</span>
        </div>

        <div class="schedule">
          <div><span>自购买起，课时90天内有效</span></div>
          <div><span>建议4-6节课/周</span></div>
          @if($largeLimit['day'] > 0)
            <div class="reg-btn buy-btn disable" data-field="5">待开放</div>
          @else
            <div class="reg-btn buy-btn" data-field="5">购买</div>
          @endif
        </div>

      </div>

    </div>
  </div>
  <div class="section">
    <div class="blue-divider"></div>
    <div class="header">简单<span>3</span>步，立即上课</div>
    <div class="lesson-steps" style="margin-top:10px;">
      <div class="item">
        <div class="ok-icon"></div>
        <span>购买课程</span>
      </div>
      <div class="item">
        <div class="chat-icon"></div>
        <span>微信约课</span>
      </div>
      <div class="item">
        <div class="tv-icon"></div>
        <span>进入教室</span>
      </div>
    </div>

    <div class="class-type">
      <div class="c-header">精品2、4人班，每节课30分钟</div>
      <div class="type">
        <div>
          <span>2</span>人班&nbsp<span>2</span>课时/节
        </div>
        <div>
          <span>4</span>人班&nbsp<span>1</span>课时/节
        </div>
      </div>
    </div>
  </div>
  <div class="section">
    <div class="blue-divider"></div>
    <div class="header">家长说</div>
    <div class="review" id="review">
      <div class="left-r item">
        <img src="{{env('CDN_RESOURCE')}}/img/mobile/avatar1.png"/>
        <div class="text">喜欢久趣，我们家一天一节课，孩子主动要求的。</div>
        <div class="review-who">
          <span>Mike 的家长</span>
        </div>
      </div>
      <div class="right-r item">
        <div class="text">全程课小孩自己上完了，完全没让我帮忙。</div>
        <img src="{{env('CDN_RESOURCE')}}/img/mobile/avatar2.png"/>
        <div class="review-who">
          <span>Lorna 的家长</span>
        </div>
      </div>
      <div class="left-r item">
        <img src="{{env('CDN_RESOURCE')}}/img/mobile/avatar3.png"/>
        <div class="text">现在上课已经成为了小朋友期盼的一件事，真不错！</div>
        <div class="review-who">
          <span>Steve 的家长</span>
        </div>
      </div>
      <div class="right-r item">
        <div class="text">外教的语音语调都很好听，很地道。</div>
        <img src="{{env('CDN_RESOURCE')}}/img/mobile/avatar4.png"/>
        <div class="review-who">
          <span>Vincent 的家长</span>
        </div>
      </div>
      <div class="left-r item">
        <img src="{{env('CDN_RESOURCE')}}/img/mobile/avatar5.png"/>
        <div class="text">孩子对语言很敏感，我希望他从小就接触纯正的表达。</div>
        <div class="review-who">
          <span>Alina 的家长</span>
        </div>
      </div>
    </div>
  </div>
  <div class="footer">
    <div class="icon-links">
      <div class="logo-blue"></div>
    </div>
    <div class="qr-code">
      @if ($qrcode)
      <img src="{{env('CDN_RESOURCE') . $qrcode . '?v=' . config('app.version')}}" alt="">
      @else
      <img src="{{env('CDN_RESOURCE')}}/img/mobile/qrcode.png" alt="">
      @endif
      <span class="name">久趣英语服务号</span>
      <span class="scan-me">扫码关注我，即可约课~</span>
    </div>
    <div id="account-info" style="text-align: center;display: none;margin-top: 10px;color: #676C75;font-size: 14px;">
      当前账号: <span id="current-account"></span> | <span id="switch-account">切换账号</span>
    </div>
    <div class="copy-right"></div>
  </div>
  <script>
    $(function () {
      {
        var mobile = localStorage.getItem('mobile')
        if (mobile) {
          $('#current-account').text(mobile.replace(mobile.substr(3, 4), '****'))
          $('#account-info').show()
        }
      }
      {
        //切换账号
        $('#switch-account').off('click').on('click',function() {
          $('.account-mask').fadeOut();
          account.forceLogin = true;
          account.checkLoginStatus(function() {
            account._showLogin(function () {}, true);
          });
        });
      }
      {
        var totalPlans = 3
        var clickItem = null
        $('.lesson-plan .detail').on('click', function () {
          $(this).addClass('zoom-in').removeClass('zoom-out')
          $(this).siblings('div').each(function () {
            if ($(this).hasClass('zoom-in')) {
              $(this).removeClass('zoom-in').addClass('zoom-out')
            }
          })

          if ($(this).index() === (totalPlans - 1)) {
            clickItem = $('.lesson-plan .detail').eq(0)
            $('.lesson-plan .detail').eq(0).remove()
            $('.lesson-plan').append(clickItem)
          }

          if ($(this).index() === 0) {
            clickItem = $('.lesson-plan .detail').eq(totalPlans - 1)
            $('.lesson-plan .detail').eq(totalPlans - 1).remove()
            $('.lesson-plan').prepend(clickItem)
          }
        })
      }
      {
        //提交订单
        $('.buy-btn').off('click').on('click', function () {
          submitMainOrder($(this).attr('data-field'));
        });
        $('.disable').off('click');

        function submitMainOrder(pId) {
          account.forceLogin = true;
          //提交订单久趣后台
          account.getUserInfo( function (userInfoError, userInforesult){

            if(userInfoError) {
              $.toastAlert(userInfoError.message);
            } else {
              if (utils.isWeChat()) {
                //配置微信分享接口
                wxconfig.activeShare(userInforesult.shareFlag);
              }
              account.ajax({
                type: 'POST',
                path: '/s/bills',
                data: {
                  productId: pId,
                  payChannel: utils.isWeChat() ? 'weixin' : 'alipay',
                  returnUrl: window.location.protocol + '//' + window.location.host + '/wx/verifypayment1/' + pId,
                  tradeType: 'JSAPI',
                  openId: window.localStorage.getItem(account.openId)
                },
                success: function (data) {
                  //唤起微信支付
                  if (data.status !== 'error') {
                    if (utils.isWeChat()) {
                      wxconfig.pay(data.bill_id, pId, JSON.parse(data.jsApiParameters))
                    } else {
                      window.location.href = data.url
                    }
                  } else {
                    $.toastAlert('下单失败，请重试')
                  }
                },
                error: function (err) {
                  if (pId == 1 && err.code === 'recharge.level.not.applicable.to.user') {
                    $('.buy-restrict').fadeIn();
                  } else {
                    $.toastAlert(err.message, 2);
                  }
                }
              });

            }

          });
        }
      }
      {
        var timeout
        $(document).bind('scroll', function () {
          clearTimeout(timeout)
          timeout = setTimeout(function () {
            var reviewList = $('#review')
            if ($(window).scrollTop() > reviewList.offset().top - 300) {
              if (reviewList.css('visibility') === 'hidden') {
                reviewList.css('visibility', 'visible')
                reviewList.find('.item').each(function () {
                  $(this).addClass('fade-animate')
                })
              }
            }
          }, 10)
        })
      }
    })
  </script>
</div>